<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$config.weburl}>/script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/jquery.ui.js"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/Validator.js"></script>
<div class="container">
<div class="oflow" style="height:230px">
<form name="withdraw_apply_opear" id="withdraw_apply_opear" action="module.php?m=product&s=withdraw_apply.php" method="post">
<input name="id" type="hidden" id="id" value="<{$id}>">
<input name="type" type="hidden" id="type" value="<{$type}>">
<table class="table">
    <thead>
        <tr>
            <th class="partition" colspan="99">提现申请操作</th>
        </tr>
    </thead>
    <tbody>
    <{if $type=='complete'}>
    <tr>
        <td width="60">账号类型</td>
        <td>
            <select name="money_account_type">
                <{foreach item=list key=key from=$bank_en_abbr}>
                    <option value="<{$key}>" <{if $key=='ALIPAY'}>selected<{/if}>><{$list}></option>
                <{/foreach}>
            </select>
        </td>
    </tr>
    <tr>
        <td width="60">打款账号</td>
        <td>
            <input type="text" name="money_account_number" id="money_account_number" value="" dataType="Require" msg="打款账号不能为空"/>
        </td>
    </tr>
    <tr>
        <td width="60">交易流水号</td>
        <td>
            <input type="text" name="transaction_serial_number" id="transaction_serial_number" value="" dataType="Require" msg="交易流水号不能为空"/>
        </td>
    </tr>
    <{/if}>
    <tr>
        <td width="60">备注</td>
        <td colspan="3"><textarea name="admin_remark" style="max-height:160px;max-width:660px"><{$admin_remark}></textarea></td>
    </tr>
    </tbody>
</table>
<div class="dialog_button">
    <input id="save" type="button" value="保存">
</div>
</form>
<div id="error"></div> 
<script>
function $$(id) {
    return !id ? null : document.getElementById(id);
}
function ajaxpost(formid) {
    var ajaxframeid = 'ajaxframe';
    var ajaxframe = $$(ajaxframeid);
    if(!ajaxframe){
        var div = document.createElement('div');
        div.style.display = 'none';
        div.innerHTML = '<iframe name="' + ajaxframeid + '" id="' + ajaxframeid + '" loading="1"></iframe>';
        ajaxframe = $$(ajaxframeid);
        $$('append_parent').appendChild(div);
    }
    $$(formid).target = ajaxframeid;
    var valid = Validator.Validate($$(formid),3);
    if(!valid){
        return;
    }
    $$(formid).submit();
    window.parent.main.document.location.reload();
    DialogManager.close("withdraw_apply");
}
$("#save").click(function () {
    ajaxpost("withdraw_apply_opear");
    return false;
});
</script>
</div>
</div>